package com.bihu.bihudemo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bihu.bihudemo.entity.Question;
import com.bihu.bihudemo.entity.vo.QuestionVo;

import java.util.List;

/**
 * 文章(Question)表服务接口
 *
 * @author makejava
 * @since 2020-07-15 17:09:59
 */
public interface QuestionService extends IService<Question> {

    /**
     * 分页查询所有的问题以及对于的标签列表
     * @return
     */
    public IPage<QuestionVo>getAllQuestionWithTagsByPage(Page<QuestionVo> page);

    public IPage<QuestionVo>getQuestionWithTagsByTagID(Page<QuestionVo>page,Integer tagID);

    public IPage<QuestionVo>getQuestionWithTagsByTitle(Page<QuestionVo>page,String title);

    public void SynViewCount2DB();
}